package com.tenement.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.tenement.entity.ExceptionLog;
import com.tenement.mapper.ExceptionLogMapper;
import com.tenement.service.ExceptionLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author BertXie
 * @since 1.0.1
 */
@Service
@RequiredArgsConstructor
public class ExceptionLogServiceImpl extends ServiceImpl<ExceptionLogMapper, ExceptionLog> implements ExceptionLogService {

    private final ExceptionLogMapper exceptionLogMapper;

    @Override
    public int addExceptionLog(ExceptionLog exceptionLog) {
        return exceptionLogMapper.insertSelective(exceptionLog);
    }
}
